﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NNCore
{
    public class Tanh : AFunction
    {

        override public double compute(double value, double threshold)
        {
            return Math.Tanh(threshold*value);
        }
    }
}
